package org.newcih.domain.support;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;
/**
 * 基类：基础设施类
 * @author Administrator
 *
 * @param <PK>
 */
@MappedSuperclass
public class BaseEntity <PK extends Serializable>
{
	protected PK id;
	protected String creater;
	protected Date   createrTime;
	protected String lastUpdate;
	protected Date   lastUpdateTime;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public PK getId() {
		return id;
	}
	public String getCreater() {
		return creater;
	}
	public Date getCreaterTime() {
		return createrTime;
	}
	public String getLastUpdate() {
		return lastUpdate;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	
	public void setId(PK id) {
		this.id = id;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public void setCreaterTime(Date createrTime) {
		this.createrTime = createrTime;
	}
	public void setLastUpdate(String lastUpdate) {
		this.lastUpdate = lastUpdate;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
	
}
